﻿using MachineVision.Core.TemplateMatch.Shared;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MachineVision.Core.CircleMeasure
{
    /// <summary>
    /// 卡尺找圆运行参数
    /// </summary>
    public class CircleRunParameter : BaseParameter
    {
        public override void ApplyDefaultParameter()
        {
            MeasureSigma = 1;
            MeasureThreshold = 30;
            MeasureLength1 = 20;
            MeasureLength2 = 5;
        }

        private double row;

        public double Row
        {
            get { return row; }
            set { SetProperty(ref row, value); }
        }

        private double column;

        public double Column
        {
            get { return column; }
            set { column = value; }
        }

        private double radius;

        public double Radius
        {
            get { return radius; }
            set { radius = value; }
        }

        private double measureLength1;

        public double MeasureLength1
        {
            get { return measureLength1; }
            set { measureLength1 = value; }
        }

        private double measureLength2;

        public double MeasureLength2
        {
            get { return measureLength2; }
            set { measureLength2 = value; }
        }

        private int measureSigma;
        /// <summary>
        /// 测量平滑系数
        /// </summary>
        public int MeasureSigma
        {
            get { return measureSigma; }
            set { measureSigma = value; }
        }


        private double measureThreshold;
        /// <summary>
        /// 边缘阈值
        /// </summary>
        public double MeasureThreshold
        {
            get { return measureThreshold; }
            set { measureThreshold = value; }
        }

        //private List<string> genParamName;

        //public List<string> GenParamName
        //{
        //    get { return genParamName; }
        //    set { genParamName = value; }
        //}

        //private List<double> genParamValue;

        //public List<double> GenParamValue
        //{
        //    get { return genParamValue; }
        //    set { genParamValue = value; }
        //}



    }
}
